﻿using System;
using System.Collections.Generic;
using System.Text;
using SaiLing.Domain.Persistence.Relational;
using SaiLing.Extensions;
using SaiLing.SingleSignOn.Domain.Entities.Enums;

namespace SaiLing.SingleSignOn.Domain.Entities.System
{
    public class OperationLog : IEntity
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public string OperatorType { get; set; }

        /// <summary>
        /// 操作内容
        /// </summary>
        public string OperatorContent { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string OperatorRemark { get; set; }

        /// <summary>
        /// 操作员Id
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 操作员姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 日志类型
        /// </summary>
        public LogType LogType { get; set; }
        /// <summary>
        /// Ip地址
        /// </summary>
        public string Ip { get; set; }


        public virtual string LogTypeText => LogType.Localized();
    }
}
